package com.jnshu;

import com.jnshu.quartz.Mybean;
import com.jnshu.service.MessageService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableEurekaClient
@MapperScan(value = "com.jnshu.dao")
public class AcademyCutePersonServiceApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(AcademyCutePersonServiceApplication.class, args);
        MessageService messageService = run.getBean(MessageService.class);
        Mybean.messageService=messageService;
    }

}
